Fix `string-to-number' to deal consistently with integers and floats.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 4 Dec 2009 16:16:26 +0000 (16:16 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 4 Dec 2009 16:16:26 +0000 (16:16 +0000)
commit3f69318bf6394e9862812fa85a6e51a275280d0b
tree82b27ec48fc5cfde04c40fef17e3f2db5d3ad0df
parenta0f9d7ffba81a9cc4ca043f3aeebb8ac6c71011d
Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
  trailing characters, not just whitespace.
  (read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
  trailing chars, as it is already done for integers.  Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
src/ChangeLog
src/data.c
src/lisp.h
src/lread.c